using System;
using System.Collections.Generic;
using System.Text;

using LegendemuLib;

namespace LegendemuLogin.Packets.Client
{
    public class SendVersion : Packet
    {
        public SendVersion()
        {
            this.size = 16;
            this.offset = 1;
        }

        public string GetVersionString()
        {
            return this.GetString(8);
        }

        public int GetIntVersion()
        {
            return this.GetInt(4);
        }

        public ushort GetUShortVersion()
        {
            return this.GetUShort(24);
        }

        public override LegendemuLib.Packet New()
        {
            return (LegendemuLib.Packet)new LegendemuLogin.Packets.Client.SendVersion();
        }

        public override void Parse(LegendemuLib.Client client)
        {
            ((LoginClient)(client)).OnSendVersion(this);
        }

    }
}
